package com.lagou.dao;

import com.lagou.pojo.User;

import java.util.List;

/**
 * description UserDao
 * author wy
 * date 2021-04-18 22:38
 **/
public interface UserDao
{
    //查询所有用户
    List<User> selectList() throws Exception;

    //根据条件进行用户查询
    User selectOne(User user) throws Exception;

    //插入
    int insert(User user) throws Exception;

    //修改
    int update(User user) throws Exception;

    //删除
    int delete(User id) throws Exception;
}
